package com.example.my;


import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.Activity;


public class MainActivity extends Activity {
	
	Button btno1;
	Button btno2;
	Button btnb1;
	Button btnb2;
	Button btnb3;
	Button btno3;
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		btno1 = (Button) findViewById(R.id.btno1);
		btno2 = (Button) findViewById(R.id.btno2);
		btnb1 = (Button) findViewById(R.id.btnb1);
		btnb2 = (Button) findViewById(R.id.btnb2);
		btnb3 = (Button) findViewById(R.id.btnb3);
		btno3 = (Button) findViewById(R.id.btno3);
		
		btno1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
			MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.h);
			mp.start();
				
			}
		}); 
		
		btno2.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
			MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.c);
			mp.start();
				
			}
		}); 
		
		btnb1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
			MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.i);
			mp.start();
				
			}
		}); 

		btnb2.setOnClickListener(new OnClickListener() {
	
			@Override
			public void onClick(View v) {
		
				MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.j);
				mp.start();
		
				}
		});
		
		btno3.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
		
				MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.g);
				mp.start();
		
				}
		});
		
		btnb3.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
		
				MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.f);
				mp.start();
		
				}
		});
	}
}
